package com.luke.base.domain;

import java.io.Serializable;

public class RetrieveAlarm implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;
    private String car_id;
    private String time;
    private String event_type;
    private long lon;
    private long lat;
    private long lon_r;
    private long lat_r;
    private Integer speed;
    private Integer heading;
    private String alarmInfo;
    private Integer isRead;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCar_id() {
        return car_id;
    }

    public void setCar_id(String car_id) {
        this.car_id = car_id;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getEvent_type() {
        return event_type;
    }

    public void setEvent_type(String event_type) {
        this.event_type = event_type;
    }

    public long getLon() {
        return lon;
    }

    public void setLon(long lon) {
        this.lon = lon;
    }

    public long getLat() {
        return lat;
    }

    public void setLat(long lat) {
        this.lat = lat;
    }

    public long getLon_r() {
        return lon_r;
    }

    public void setLon_r(long lon_r) {
        this.lon_r = lon_r;
    }

    public long getLat_r() {
        return lat_r;
    }

    public void setLat_r(long lat_r) {
        this.lat_r = lat_r;
    }

    public Integer getSpeed() {
        return speed;
    }

    public void setSpeed(Integer speed) {
        this.speed = speed;
    }

    public Integer getHeading() {
        return heading;
    }

    public void setHeading(Integer heading) {
        this.heading = heading;
    }

    public String getAlarmInfo() {
        switch (event_type){
            case "1":
                alarmInfo="您的"+car_id+"车辆于"+time+"发生震动报警,请及时关注！";
                break;
            case "2":
                alarmInfo="您的"+car_id+"车辆于"+time+"发生出电子围栏报警,请及时关注！";
                break;
            case "3":
                alarmInfo="您的"+car_id+"车辆于"+time+"发生远程锁车报警,请及时关注！";
                break;
            case "4":
                alarmInfo="您的"+car_id+"车辆于"+time+"发生远程解锁报警,请及时关注！";
                break;
            case "5":
                alarmInfo="您的"+car_id+"车辆于"+time+"发生防拆报警,请及时关注！";
                break;
            case "11":
                alarmInfo="您的"+car_id+"车辆于"+time+"发生备用电池电量低报警,请及时关注！";
                break;
            case "12":
                alarmInfo="您的"+car_id+"车辆于"+time+"发生无ACC的位移报警,请及时关注！";
                break;
            case "13":
                alarmInfo="您的"+car_id+"车辆于"+time+"发生主电源切断报警,请及时关注！";
                break;
            case "14":
                alarmInfo="您的"+car_id+"车辆于"+time+"发生主电源电压低报警,请及时关注！";
                break;
            default:
                break;
        }
        return alarmInfo;
    }

    public void setAlarmInfo(String alarmInfo) {
        this.alarmInfo = alarmInfo;
    }

    public Integer getIsRead() {
        return isRead;
    }

    public void setIsRead(Integer isRead) {
        this.isRead = isRead;
    }
}
